﻿@*
    TicketDesk - Attribution notice
    Contributor(s):

         Stephen Redd (stephen@reddnet.net, http://www.reddnet.net)

    This file is distributed under the terms of the Microsoft Public
    License (Ms-PL). See http://opensource.org/licenses/MS-PL
    for the complete terms of use.

    For any distribution that contains code from this file, this notice of
    attribution must remain intact, and a copy of the license must be
    provided to the recipient.
*@

@using TicketDesk.Web.Identity


<li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
        <i class="fa fa-user"></i><span class="">
            @(User.Identity.IsAuthenticated ? User.Identity.GetUserDisplayName() : "Account")
        </span>
        <span class="caret"></span>
    </a>
    <ul class="dropdown-menu" role="menu">
        @if (User.Identity.IsAuthenticated)
        {
            <li>
                @Html.ActionLink("My Account", "Manage", "Account")
            </li>
            <li>
                @Html.ActionLink("Log Off", "SignOut", "User")
            </li>
        }
        else
        {
            <li>@Html.ActionLink("Register", "Register", "User", null, new { id = "registerLink" })</li>
            <li>@Html.ActionLink("Sign In", "SignIn", "User", null, new { id = "loginLink" })</li>
        }
    </ul>

</li>

